(function($ , undefined) {
	ace.vars['US_STATES'] = {$json|raw};
	try {
		$('#nav-search-input').bs_typeahead({
			source: ace.vars['US_STATES'],
			updater:function (item) {
				$('#nav-search-input').focus();
				return item;
			}
		});
	} catch(e) {}

})(window.jQuery);
$(function(){
	$('#skin-colorpicker').on('change', function() {
		var skin = $(this).find("option:selected").attr('data-skin');
		$.get("{:url('admin/user/skin')}",{skin:skin});
	})

});
